package com.cloud.pole.feign;

import org.springframework.cloud.netflix.feign.FeignClient;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.bind.annotation.RequestParam;

import com.cloud.pole.api.advert.AdvertApi;
import com.cloud.pole.api.param.PicklistApi;
import com.cloud.pole.common.constant.ApiConstant;
import com.cloud.pole.common.msg.ApiRestResponse;
import java.util.List;


/**
 * ${DESCRIPTION}
 *
 * @author wanghaobin
 * @create 2017-06-21 8:11
 */
@FeignClient(value = ApiConstant.PARAM_SERVICE_ID)
public interface IParamPickListService {
	
  @RequestMapping(value=ApiConstant.PARAM_SERVICE_GET_PICKLIST_URL, method = RequestMethod.GET)
  public ApiRestResponse<List<PicklistApi>> getPickList(@RequestParam(name="picklistCode", defaultValue = "") String picklistCode);
 
  @RequestMapping(value=ApiConstant.PARAM_SERVICE_PICKLIST_GETPICKLISTTEXT, method = RequestMethod.GET)
  public ApiRestResponse<String> getPickListText(
		  @RequestParam(name="picklistCode", defaultValue = "") String picklistCode,
		  @RequestParam(name="picklistValue", defaultValue = "") String picklistValue);
 
}
